/**
 * 展示一个商品
 */
 import { Button } from 'antd';

function GoodItemView(props){
  const  {good:{goods_id,goods_name,goods_price},deleteItem} = props
  return <li>
      <span>{goods_id} ---{goods_name} ---{ goods_price } </span>
      <Button type="primary"  onClick={()=>deleteItem(goods_id)}> 删除</Button>
  </li>
} 

export default GoodItemView